async function B() {
    return new Promise((resolve)=> {
        setTimeout(()=> {
            resolve(true);
        }, 100)
    })
}
async function A() {
    let result = await B();
    console.log(result);
}
A();